package com.itheima.health.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.itheima.health.dao.MemberCountDao;
import com.itheima.health.service.MemberCountService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;
import java.util.Map;

@Service
@Slf4j
public class MemberCountServiceImpl implements MemberCountService {

    @Autowired
    private MemberCountDao memberCountDao;
    @Override
    public List<Map<String, Object>> countByMember() {


        return memberCountDao.countByMember() ;
    }

    @Override
    public List<Map<String, Object>> findMemberByage() {

        return memberCountDao.findMemberByage();
    }
}
